package com.groupfive.service;

import com.github.pagehelper.PageInfo;
import com.groupfive.pojo.Article;

import java.util.List;

public interface ArticleService {

    int add(Article article);

    int update(Article article);

    int deleteById(Long id);

    void deleteBatch(List<Long> ids);

    List<Article> selectAll(Article article);

    Article selectById(Long id);

    PageInfo<Article> selectPage(Article article, Integer pageNum, Integer pageSize);

}
